<?php
class View_Administration_Module_Edit_Relations extends View_Administration_Module_Edit
{
	public function buildContent( $moduleId )
	{
		$words		= $this->words['module']['editModuleRelations'];
		$module		= Logic_Module::getConfig( $moduleId );
		$formData	= $module;
		$ui			= array(
			'words'		=> $words,
			'form'		=> $this->buildForm(
				'administration.module',
				'editModuleRelations',
				'module',
				'editModuleRelations',
				$formData
			),
			'form.tag'		=> $this->html->Form(
				'editModuleRelations',
				self::getUrl( array( 'moduleId' => $moduleId, 'action' => 'editModule' ) ).'#relations-container'
			),
			'buttonCancel'	=> $this->html->LinkButton(
				self::getUrl( array( 'moduleId' => $moduleId ) ),
				$words['buttonCancel'],
				'but cancel'
			),
			'buttonSave'	=> $this->html->Button(
				'editModuleRelations',
				$words['buttonSave'],
				'but edit'
			),
		);
		return $this->loadTemplate( 'administration.module.edit.relations', $ui );
	}
}
?>
